package top.hmtools.ckfinder.beans;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import top.hmtools.ckfinder.beans.commons.BaseResultBean;
import top.hmtools.ckfinder.beans.commons.CurrentFolderBean;
import top.hmtools.ckfinder.beans.commons.FileBean;

@XmlRootElement(name="Connector")
public class GetFilesResultBean extends BaseResultBean {

	@XmlElement(name="CurrentFolder")
	private CurrentFolderBean currentFolderBean;
	
	@XmlElementWrapper(name="Files")
	@XmlElements(value={@XmlElement(name="File")})
	private List<FileBean> files;

	@XmlTransient
	public CurrentFolderBean getCurrentFolderBean() {
		return currentFolderBean;
	}

	public GetFilesResultBean setCurrentFolderBean(CurrentFolderBean currentFolderBean) {
		this.currentFolderBean = currentFolderBean;
		return this;
	}

	@XmlTransient
	public List<FileBean> getFiles() {
		return files;
	}

	public GetFilesResultBean setFiles(List<FileBean> files) {
		this.files = files;
		return this;
	}
	
	
}
